<!--  -->
<template>
  <div>
   <button @click="down">文件下载</button>
  </div>
</template>

<script lang='ts' setup>
import { reactive,toRefs,ref,onMounted} from 'vue'
import { download } from '../../utils/downLoadUtil';

const down=async ()=>{

    download("upload/2025/7/11/20250711141043499.pdf");

//     const res=await download("upload/2025/7/11/20250711141043499.pdf");

 

//     console.log("返回数据",res);

//     const url = URL.createObjectURL(res.data);

//     console.log("url",url);
    


//    // const url = 'http://123.57.237.81:8080/caresystem/upload/1.rar';
//     const a = document.createElement('a');
//     a.href = url;
//     a.download = '1111111.pdf';
//     a.style.display = 'none';

//     document.body.appendChild(a);

//     a.click();

//     document.body.removeChild(a);



}
</script>
<style scoped>
</style>